<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "contract".
 *
 * @property int $id
 * @property string $name 合同名称
 * @property string $file 合同附件
 * @property string $desc 合同描述
 * @property int $start 开始时间
 * @property int $end 结束时间
 * @property string $remark 备注
 * @property int $is_notice 是否提示
 * @property string $phones 提示手机号
 * @property string $money 合同金额
 * @property string $company 合同单位
 * @property int $status 状态
 * @property int $is_send
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class Contract extends Base
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'contract';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['desc', 'remark', 'phones'], 'string'],
            [['start', 'end', 'is_notice', 'status', 'is_send', 'created_at', 'updated_at'], 'integer'],
            [['money'], 'number'],
            [['name', 'file', 'company'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'file' => 'File',
            'desc' => 'Desc',
            'start' => 'Start',
            'end' => 'End',
            'remark' => 'Remark',
            'is_notice' => 'Is Notice',
            'phones' => 'Phones',
            'money' => 'Money',
            'company' => 'Company',
            'status' => 'Status',
            'is_send' => 'Is Send',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
